/*
 *  ID.cpp
 *  bgsubtraction
 *
 *  Created by a1gucis on 4/28/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "ID.h"

ID::ID(int r, int g, int b) {
	this->idR = r;
	this->idG = g;
	this->idB = b;
}

int ID::getR() {
	return this->idR;
}

int ID::getG() {
	return this->idG;
}

int ID::getB() {
	return this->idB;
}

bool ID::isEqual(ID *id) {
	if ((id->getR() == this->idR) && (id->getG() == this->idG) && (id->getB() == this->idB))
		return true;
	return false;
}

void ID::printID() {
	cout<<idR<<" "<<idG<<" "<<idB;
}